]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: Actually wait for pending messages being notified on failures
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 10 Sep 2024 22:22:57 +0000 (00:22 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 10 Sep 2024 22:47:55 +0000 (22:47 +0000)
We had code to ensure that all the queued messages sent by a PAM module
were shown by waiting some time to give the user time to read them, but
due to a typo this code never executed.

Fixes commit dd97a2589b8b686f273550f3e9e6ce370b25c10d

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3466>

js/gdm/util.js

index cbb99b1a3879dde0e22ccde414ad30e48f41da38..1e0154f36f0fcb8074abf74f1e1b02a68b6e6bf2 100644 (file)
@@ -862,7 +862,7 @@ export class ShellUserVerifier extends Signals.EventEmitter {
     }
 
     _handlePendingMessages() {
-        if (!this.hasPendingMessage)
+        if (!this.hasPendingMessages)
             return Promise.resolve();
 
         const cancellable = this._cancellable;